using Verse;

namespace RimWorld;

public class PawnRelationWorker_CousinOnceRemoved : PawnRelationWorker
{
	public override bool InRelation(Pawn me, Pawn other)
	{
		if (me == other)
		{
			return false;
		}
		PawnRelationWorker worker = PawnRelationDefOf.Cousin.Worker;
		if ((other.GetMother() != null && worker.InRelation(me, other.GetMother())) || (other.GetFather() != null && worker.InRelation(me, other.GetFather())))
		{
			return true;
		}
		PawnRelationWorker worker2 = PawnRelationDefOf.GranduncleOrGrandaunt.Worker;
		if ((other.GetMother() != null && worker2.InRelation(me, other.GetMother())) || (other.GetFather() != null && worker2.InRelation(me, other.GetFather())))
		{
			return true;
		}
		return false;
	}
}
